<?php
require_once('configure.php');  
$formulas = array();
$formulas['[GAPOK]'] = 
$formulas['[HARI_BULAN]'] =  
$formulas['[MASA_KERJA_TAHUN]'] =  
$formulas['[CITO]'] =  
$formulas['[TANGGUNGAN_KELUARGA]'] =  
$formulas['[HUT_TMB]'] =   
$formulas['[TPKT]'] =  
$formulas['[INSENTIF]'] =  
$formulas['[LBR_56_JAM]'] =  
$formulas['[FASKES]'] =   
$formulas['[UPMK_BL]'] =  
$formulas['[MARITAL]'] =  
$formulas['[UML_4_JAM]'] = 
$formulas['[REALISASI_HARI]'] = 
$formulas['[POTONGAN_HARI]'] =  
$formulas['[POTONGAN_JAM]'] =  
$formulas['[POTONGAN_MENIT]'] =   
$formulas['[LBR_1.5]'] = 
$formulas['[LBR_2]'] =  
$formulas['[LBR_3]'] =  
$formulas['[LBR_4]'] =  
$formulas['[LEMBUR]'] =  
$formulas['[JUMLAH_JAM]'] =  
$formulas['[LEMBUR_OTOMATIS]'] =  
$formulas['[HARI_KERJA]'] =  
$formulas['[KJK]'] = 1;
 
$text = $_GET['formula'] ;
 
foreach($formulas  as $key => $val ){ 
	$text  = str_replace($key , $val , $text); 
} 
eval("\$hasil_type_entry  =  ".  $text .";" ) ; 
var_dump($hasil_type_entry );